package com.spottydog.virtues;

import java.util.Date;

public class VirtueDate {
	
	public enum Virtue {
		Temperance,
		Silence,
		Order,
		Resolution,
		Frugality,
		Industry,
		Sincerity,
		Justice,
		Moderation,
		Cleanliness,
		Tranquility,
		Chastity,
		Humility
	}
	
	private int rowId;
	private int count;
	private String values;
	private Date date;
	private Virtue virtue;
	
	public VirtueDate(int rowId, int count, String values, Date date, Virtue virtue) {
		this.rowId =  rowId;
		this.count = count;
		this.values = values;
		this.date = date;
		this.virtue = virtue;
	}
	
	public VirtueDate(int count, String values, Date date, Virtue virtue) {
		this(-1, count, values, date, virtue);
	}
	
	public void setRowId(int rowId) {
		if (this.rowId != -1) throw new IllegalStateException("Cannot update ROWID of existing row.");
		this.rowId = rowId;
	}
	public int getRowId() {
		return rowId;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Date getDate() {
		return date;
	}
	public Virtue getVirtue() {
		return virtue;
	}
	public String getValues() {
		return values;
	}
	public void setValues(String values) {
		this.values = values;
	}
	
}
